import request from '@/utils/http'
// 添加购物车接口
export const addCarService = ({skuId,count}) => {
    return request.post('/member/cart',{skuId,count})
}
// 重新获取购物车列表接口
 export const obtainListService = () => {
    return request.get('/member/cart')
 }

//  删除购物车接口
 export const deleteListService = (ids) => {
    return request.delete('/member/cart',{
      data:{
         ids
      }
    })
 }

//  合并购物车
// export const mergeCarService = (list) => {
//    return request.post('/member/cart/merge',list)
// }
// export const mergeCarService = (data) => {
//    return request({
//       url:'/member/cart/merge',
//       method:'POST',
//       data
//    })
// }
export const getOrderService = (id) => {
   return request.get(`/member/order/${id}`)
}